<?php
/**
 * Created by PhpStorm.
 * User: *!N.J
 * Date: 2021/9/26
 * Time: 12:50
 * QQ:1467572213
 */

namespace app\agent\controller;

use think\facade\Request;
use think\facade\Session;
use \app\agent\model\Recharge as Recharge_m;

class Recharge extends Base
{
    public function recharge_list()
    {
        $keyword = Request::get('keyword');
        $agent_id = Session::get('agent_id');
        if ($keyword){
            $sum = Recharge_m::sum($keyword,$agent_id);
            $this->assign('sum',$sum);
        }
        $list = Recharge_m::recharge_list($keyword,$agent_id);
        $page = $list->render();
        $this->assign('pages', $page);
        $this->assign('list', $list);
        return $this->fetch();
    }

}